<template>
<div>
  <h1 ref="zi">画江湖</h1>
  <button @click="one">点击获取</button>
</div>
</template>

<script>
export default {
name: "Zi",
  data() {
    return {
      name: "哇哈哈"
    }
  },
  methods:{
  one(){
    // this.$refs.zi.innerHTML="急急急卡拉胶",
        // this.
    console.log(this.$refs.zi)
  }
  }
}
</script>

<style scoped>

</style>